﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/SokMunkae.Master" CodeBehind="Default.aspx.cs" Inherits="Sok.Munkae.Web._Default" %>
<%@ Import Namespace="System.ComponentModel"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<div class="grid_4 alpha"><img src="Content/images/sockmonkey.jpg" /></div>
<div class="grid_12 omega">
<h1>Sok Munkae: Project Managment</h1>
<h2><i>(It's so easy, a Sok Munkae could do it)</i></h2>
<h3>Organization: <%= model.OrganizationName %></h3>
<h3>CurrentUser: <%= model.CurrentUserName %>
<asp:LinkButton ID="SignOutButton" runat="server" OnClick="SignoutButton_Click" Text="Sign Out" >Sign Out</asp:LinkButton>
</h3>
</div>
<div class="grid_16">
    <h1>Project List</h1>
    <asp:Repeater ID="projectListRepeater" runat="server">
        <HeaderTemplate>
            <table border="1" width="100%">
            <tr>
            <th>Id</th>
            <th>Name</th>
            </tr>
        </HeaderTemplate> 
        <ItemTemplate>
            <tr>
            <td><%# DataBinder.Eval(Container.DataItem,"Id")%></td>
            <td><%# DataBinder.Eval(Container.DataItem,"Name")%> </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</div>
</asp:Content>